<?php

class PaymentListWidget extends CWidget {

    public $visible = true;

    public function init() {
        
    }

    public function run() {
        if ($this->visible) {
            $this->renderContent();
        }
    }

    protected function renderContent() {
        $model = new PaymentMethod();
        $model_name = "PaymentMethod";
        $model = new $model_name('search');
        $model->unsetAttributes();
        if (isset($_GET[$model_name]))
            $model->attributes = $_GET[$model_name];
        $this->render('cmswidgets.views.shopping.payment_list_widget', array('model' => $model));
    }

}
